$(document).ready(function()
{
    var page_active = document.location.href.match(/[^\/]+$/);
    if(page_active !== null)
    {
        if(page_active[0] === "about.jsp") $("#page_about").addClass("active");
        else if(page_active[0] === "contact.jsp") $("#page_contact").addClass("active");
        //else $("#page_login").addClass("active");
    }
});